//
//  HYLButton.m
//  自定义按钮
//
//  Created by hyl on 16/6/8.
//  Copyright © 2016年 hyl. All rights reserved.
//

#import "HYLButton.h"

@implementation HYLButton

-(void)layoutSubviews{
    self.imageView.frame=CGRectMake(0, 0, 353, 214);
    self.titleLabel.frame=CGRectMake(0, 214, 353, 20);
    [self.imageView setImage:[UIImage imageNamed:@"2010e3a0c7f88c3f5f5803bf66addd93"]];
    //[self setImage:[UIImage imageNamed:@"2c97690e72365e38e3e2a95b934b8dd2"] forState:UIControlStateNormal];
    
    [self setTitle:@"fdsfs" forState:UIControlStateNormal];
    [self setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    self.titleLabel.textAlignment=NSTextAlignmentCenter;
    //[self setBackgroundColor:[UIColor brownColor]];
}

@end
